package com.sora.eduservice.client;

import com.sora.commonutils.R;
import com.sora.eduservice.client.impl.VodClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Classname: VodClient
 * @Description:
 * @Author: Stonffe
 * @Date: 2023/1/10 15:21
 */
@Component
@FeignClient(value = "service-vod",fallback = VodClientImpl.class)
public interface VodClient {
    /**
     * 根据video_source_id删除视频
     * @param id
     * @return
     */
    @DeleteMapping("/eduvod/video/removeAliyunVideoById/{id}")
    R removeAliyunVideoById(@PathVariable("id") String id);

    /**
     * 删除多个视频
     * @param list
     * @return
     */
    @DeleteMapping("/eduvod/video/removeBatch")
    R removeBatch(@RequestParam List<String> list);
}
